<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Person</title>
	</head>
	<body>
		<script type="text/javascript">
			var person={
				firstname:"强尼",
				lastname:"银手",
				age:80,
				fullName1:function(){
					return this.firstname+this.lastname;
				}
			}
			console.log(person);
			console.log(person.fullName1());
			person.address="夜之城";
			person.fullName2=function(){
				return this.firstname+this.lastname+","+person.age;
			}
			console.log(person);
			console.log(person.fullName2());
		</script>
	</body>
</html>
